package sanmubird.club.ji;


import org.springframework.util.DigestUtils;

import java.io.FileInputStream;
import java.io.IOException;

/**
 * @author sam
 * @date 2021/5/8 15:57
 */
public class Md5Utils {

    public static String getMD5Three(String path) {
        try {
            return DigestUtils.md5DigestAsHex(new FileInputStream(path));
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }


}
